package com.laxia.domain.entity;

import com.laxia.mybatis.BaseDomain;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import javax.persistence.Column;
import javax.persistence.Table;

/**
 * 后台用户
 * <p>
 * tableName: admin_user
 */
@Getter
@Setter
@Accessors(chain = true)
@Table(name = "admin_user")
public class AdminUser extends BaseDomain {
    /**
     * 登录账号
     */
    @Column(name = "username")
    private String username;

    /**
     * 密码
     */
    @Column(name = "password")
    private String password;

    /**
     * 用户名
     */
    @Column(name = "real_name")
    private String realName;

    /**
     * 手机号
     */
    @Column(name = "mobile")
    private String mobile;

    /**
     * 邮箱
     */
    @Column(name = "email")
    private String email;

    /**
     * 备注
     */
    @Column(name = "remark")
    private String remark;

    /**
     * 是否超级管理员,默认0:否  1.是
     */
    @Column(name = "is_admin")
    private Integer isAdmin;

    /**
     * 状态 0-正常 1-冻结
     */
    @Column(name = "state")
    private Integer state;
}